package com.whenjun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author whenjun
 * @since 2024-02-27
 */
@TableName("isc_door_record")
@ApiModel(value = "IscDoorRecord对象", description = "")
public class IscDoorRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    private String eventId;

    @ApiModelProperty("事件编号")
    private String eventType;

    @ApiModelProperty("门禁点唯一编号")
    private String srcIndex;

    @ApiModelProperty("事件源名称")
    private String srcName;

    @ApiModelProperty("控制器设备唯一接入编码")
    private String srcParentIndex;

    @ApiModelProperty("事件产生时间")
    private LocalDateTime happenTime;

    @ApiModelProperty("卡号")
    private String cardNo;

    @ApiModelProperty("门编号")
    private Integer doorId;

    @ApiModelProperty("进出类型1：进.  0：出. -1:未知 要求：进门读卡器拨码设置为1，出门读卡器拨码设置为2")
    private Integer inOut;

    @ApiModelProperty("人员 id")
    private String personId;

    @ApiModelProperty("人员类型：0 未知，1 普通，2 来宾，3 黑名单，4 管理员")
    private Integer userType;

    @ApiModelProperty("入库时间")
    private LocalDateTime createTime;

    @ApiModelProperty("原始 json")
    private String source;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getSrcIndex() {
        return srcIndex;
    }

    public void setSrcIndex(String srcIndex) {
        this.srcIndex = srcIndex;
    }

    public String getSrcName() {
        return srcName;
    }

    public void setSrcName(String srcName) {
        this.srcName = srcName;
    }

    public String getSrcParentIndex() {
        return srcParentIndex;
    }

    public void setSrcParentIndex(String srcParentIndex) {
        this.srcParentIndex = srcParentIndex;
    }

    public LocalDateTime getHappenTime() {
        return happenTime;
    }

    public void setHappenTime(LocalDateTime happenTime) {
        this.happenTime = happenTime;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Integer getDoorId() {
        return doorId;
    }

    public void setDoorId(Integer doorId) {
        this.doorId = doorId;
    }

    public Integer getInOut() {
        return inOut;
    }

    public void setInOut(Integer inOut) {
        this.inOut = inOut;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Override
    public String toString() {
        return "IscDoorRecord{" +
            "id = " + id +
            ", eventId = " + eventId +
            ", eventType = " + eventType +
            ", srcIndex = " + srcIndex +
            ", srcName = " + srcName +
            ", srcParentIndex = " + srcParentIndex +
            ", happenTime = " + happenTime +
            ", cardNo = " + cardNo +
            ", doorId = " + doorId +
            ", inOut = " + inOut +
            ", personId = " + personId +
            ", userType = " + userType +
            ", createTime = " + createTime +
            ", source = " + source +
        "}";
    }
}
